package cn.zhl.设计模式.适配器.springmvc.adapter;

import cn.zhl.设计模式.适配器.springmvc.controller.Controller;
import cn.zhl.设计模式.适配器.springmvc.controller.SimpleController;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2021-03-17 16:48
 **/
public class SimleAdapter implements BasicAdapter{
	@Override
	public boolean support(Object handler) {
		return handler instanceof SimpleController;
	}

	@Override
	public void handle(Object handler) {
		((SimpleController) handler).dosimple();
	}
}
